#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include "char_lists.h"

char *words[] = {"one","two","three","four","five",NULL};

int main(int argc, char *argv[]) {
   int i=0;
   char **new = NULL;
   new = list_init();
   while(words[i]) {
      new=list_append(new,words[i]);
      i++;
   }
   i=0;
   while(new[i]) {
      printf("%i,%s\n",i,new[i]);
      i++;
   }
   clean_list(new);
   free(new);
   return 0;
}